
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商品详情</title>
    <meta http-equiv="description" content=""/>
    <meta http-equiv="keywords" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no"/>
    <link href="{{ URL::asset('front/css/bootstrap.min.css') }}" rel="stylesheet">
    <link rel="stylesheet" href="{{ URL::asset('front/fonts/font-awesome.min.css') }}">
    <script src="{{ URL::asset('front/js/jquery.min.js') }}"></script>
    <script src="{{ URL::asset('front/js/bootstrap.min.js') }}"></script>
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('front/css/common.css') }}"/>
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('front/css/site.css?v=5') }}"/>
</head>

<body style="backgorund:#fff;">
<div id="product_slider" class="carousel slide">
    <!-- 轮播（Carousel）指标 -->
    <ol class="carousel-indicators">
        <li data-target="#product_slider" data-slide-to="0" class="active"></li>
        <li data-target="#product_slider" data-slide-to="1"></li>
        <li data-target="#product_slider" data-slide-to="2"></li>
    </ol>
    <!-- 轮播（Carousel）项目 -->
        <div class="carousel-inner">
           <!--  <div class="item active" style="background-image:url('{{ $PATH }}{{ $commodity->cover }}')"></div> -->
            <p><img src="{{ $PATH }}{{ $commodity->cover }}" style="width:100%"></p>
        </div>
    <!-- 轮播（Carousel）导航 -->
    <a class="carousel-control left" href="#product_slider"
       data-slide="prev">&lsaquo;</a>
    <a class="carousel-control right" href="#product_slider"
       data-slide="next">&rsaquo;</a>
</div>

<div id="product_info">


    <!-- Tab panes -->
    <div class="tab-content">
        <div class="tab-pane active" id="tedian">
        	<div class="tabfont">
                <div><label>名称:</label> {{ $commodity->name }}</div>
                <div><label>价格:</label> <span>积分 {{ $commodity->member_points }} /
                                                                          会员价 {{ $commodity->member_price  }} /
                                                                          原价 {{ $commodity->public_price}}
                                                                          </span>
                 </div>
                <hr class="hr_inner_dashed" />
            </div>
            <div class="maininfo">
                {{ $commodity->content }}
            </div>
        </div>

    </div>
</div>


<div class="copy">
    <div class="container">

    </div>
</div>

<footer class="footer">
    <div class="row">
    <div class="col-xs-6" style="text-align:center;"><a href="javascript:void(0);" id="closeWindow"><i class="fa fa-remove"></i> 返回</a></div>
    <div class="col-xs-6"><a href="{{ route('commodities.buy',array('commodity_id'=>$commodity->id)) }}"><i class="fa fa-shopping-cart"></i> 立即购买</a></div>
    </div>
</footer>

<script src="{{ URL::asset('front/js/jquery.min.js') }}"></script>
<script type="text/javascript">
    $(function(){
        $("#brand_menu").click(function(){
            $("#k_list").toggle();
        })
    });
</script>
<script type="text/javascript">
    var readyFunc = function onBridgeReady() {
        var curid;
        var curAudioId;
        var playStatus = 0;

        // 关闭当前webview窗口 - closeWindow
        document.querySelector('#closeWindow').addEventListener('click', function(e){
            WeixinJSBridge.invoke('closeWindow',{
            },function(res){

                //alert(res.err_msg);

            });
        });
    }

    if (typeof WeixinJSBridge === "undefined") {
        document.addEventListener('WeixinJSBridgeReady', readyFunc, false);
    } else {
        readyFunc();
    }

</script>



    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->

</body>
</html>
